package org.clever.dynamic.datasource.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.clever.dynamic.datasource.service.Test2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 作者： lzw<br/>
 * 创建时间：2018-12-14 11:21 <br/>
 */
@Api(description = "测试")
@RequestMapping("/test2")
@RestController
@Slf4j
public class Test2Controller {

    @Autowired
    private Test2Service test2Service;

    @ApiOperation("测试")
    @GetMapping("/t01")
    public void t01() {
        test2Service.test();
    }
}
